<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
	<th:block th:include="include :: header('新增项目日志')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-projectLog-add">
			<div class="form-group">	
				<label class="col-sm-3 control-label">：</label>
				<div class="col-sm-8">
					<input id="projectId" name="projectId" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">用户ID：</label>
				<div class="col-sm-8">
					<input id="userId" name="userId" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">姓名：</label>
				<div class="col-sm-8">
					<input id="userName" name="userName" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">天气情况：</label>
				<div class="col-sm-8">
					<input id="logWeather" name="logWeather" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">COD：</label>
				<div class="col-sm-8">
					<input id="waterCod" name="waterCod" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">氨氮：</label>
				<div class="col-sm-8">
					<input id="waterNh3N" name="waterNh3N" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">总氮：</label>
				<div class="col-sm-8">
					<input id="waterTotalN" name="waterTotalN" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">总磷：</label>
				<div class="col-sm-8">
					<input id="waterTotalP" name="waterTotalP" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">PH：</label>
				<div class="col-sm-8">
					<input id="waterPh" name="waterPh" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">工艺调整情况：</label>
				<div class="col-sm-8">
					<input id="logAdjust" name="logAdjust" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">突发情况及应对说明：</label>
				<div class="col-sm-8">
					<input id="logSudden" name="logSudden" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">存在的问题：</label>
				<div class="col-sm-8">
					<input id="logProblem" name="logProblem" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">明天的工作计划：</label>
				<div class="col-sm-8">
					<input id="logWorkPlan" name="logWorkPlan" class="form-control" type="text">
				</div>
			</div>
		</form>
	</div>
    <div th:include="include::footer"></div>
    <script type="text/javascript">
		var prefix = ctx + "project/projectLog"
		$("#form-projectLog-add").validate({
			rules:{
				xxxx:{
					required:true,
				},
			},
			focusCleanup: true
		});
		
		function submitHandler() {
	        if ($.validate.form()) {
	            $.operate.save(prefix + "/add", $('#form-projectLog-add').serialize());
	        }
	    }
	</script>
</body>
</html>
